import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import moment from "moment";
import { hasBtnsPermission } from "./utils/permission";
import ElementUI from "element-gui";


// process.env.VUE_APP_loadFont
import "./assets/fontFamily/font_f.scss";
import "element-gui/lib/theme-chalk/index.css";
import "./assets/styles/element-variables.scss";
import "./assets/styles/common.scss";


import pagination from "@/components/pagination.vue"; // 分页组件
import breadcrumb from "@/components/layout/components/breadcrumb.vue"; // 面包屑组件
import ElICON from "@/components/SvgIcon"; // 面包屑组件
import wpagination from "@/components/weeon/pagination.vue"; // 微昂分页组件
import websocket from "./store/websocket"; // socket
import websocketNetty from "./store/websocketNetty"; // socket-netty
import websocketNettyPend from "./store/websocketNettyPend"; // socket-netty
import * as Utils from "cafe-utils"; // cafe封装了一些常用工具类
import filters from "./filters";
import './utils/flexible'
import 'wowjs/css/libs/animate.css'
import "./assets/font/iconfontDP.js" // 大屏图标
// import PDFSave from "vue-to-pdf";
// // import Print from "vue-print-nb";
// // // Global instruction
// // Vue.use(Print);
// Vue.use(PDFSave);
// import htmlToPdf from "@/utils/htmlToPdf";
// Vue.use(htmlToPdf);


// import hrmPlayer from '@glodon/hrm-player' // 暂时注释
// Vue.use(hrmPlayer)
import 'hrm-player/dist/hrm-player.css'
import hrmPlayer from 'hrm-player'
Vue.use(hrmPlayer)

Vue.component("Pagination", pagination);
Vue.component("wpagination", wpagination);
Vue.component("Breadcrumb", breadcrumb);
Vue.component("WIcon", ElICON);
Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.prototype.$websocket = websocket;
Vue.prototype.$websocketNetty = websocketNetty;
Vue.prototype.$websocketNettyPend = websocketNettyPend;
Vue.prototype.$moment = moment;
Vue.prototype.$hasBtnsPerm = hasBtnsPermission;
Vue.prototype.$cafeUtils = Utils;
Object.keys(filters).forEach((key) => {
  Vue.filter(key, filters[key]);
});
new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount("#app");
